/**
 * 709 - 转换成小写字母
 */
class Solution2 {
    public String toLowerCase(String s) {
        int a = 'A'-'a';
        char[] str = s.toCharArray();
        for(int i = 0; i < s.length(); i++){
            if(str[i]>='A'&&str[i]<='Z'){
                str[i] -= a;
            }
        }
        s = new String(str);
        return s;
    }
}
public class Test1 {
}
